package com.bdqn.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Table;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("sys_user")
public class SysUser {
    /**
     * 编号
     */
    @TableId(type = IdType.AUTO)
    private Long usrId;

    /**
     * 姓名
     */
    private String usrName;

    /**
     * 密码
     */
    private String usrPassword;

    /**
     * 角色编号
     */
    private Long usrRoleId;

    /**
     * 状态
     */
    private Long usrFlag;

    private long roleId;

    private String roleName;

//
//    public SysUser(String usrName, String usrPassword, Long usrRoleId, Long usrFlag) {
//        this.usrName = usrName;
//        this.usrPassword = usrPassword;
//        this.usrRoleId = usrRoleId;
//        this.usrFlag = usrFlag;
//    }
}
